package com.zhehekeji.opsys.api.plugin.wechat.webservice;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;

import com.zhehekeji.opsys.api.plugin.wechat.rsp.AccessTokenRsp;
import com.zhehekeji.opsys.api.plugin.wechat.rsp.QrcodeShowRsp;
import com.zhehekeji.opsys.api.plugin.wechat.service.WechatManagerService;

/**
 * @ClassName WechatManagerWS
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2018-1-3   上午11:15:47
 */
@WebService(endpointInterface="com.zhehekeji.opsys.api.plugin.wechat.webservice.WechatManager",
name="wechatManager",portName="wechatManagerPort",serviceName="wechatManagerWS")
public class WechatManagerWS implements WechatManager {

	@Autowired
	private WechatManagerService wechatManagerService;
	@Override
	public AccessTokenRsp getAccessToken() {
		AccessTokenRsp rsp = wechatManagerService.getAccessToken();
		return rsp;
	}

	@Override
	public QrcodeShowRsp getQrcodeShow(String activityCode, String userID, int limitWinNum) {
		QrcodeShowRsp rsp = wechatManagerService.getQrcodeShow(activityCode, userID, limitWinNum);
		return rsp;
	}

	@Override
	public QrcodeShowRsp getSafeQrcodeShow(String sign) {
		QrcodeShowRsp rsp = wechatManagerService.getSafeQrcodeShow(sign);
		return rsp;
	}
}

